Optimal. Leaf size=231 \[ -\frac {5 d (c+d x)^{3/2}}{16 b^2}+\frac {(c+d x)^{7/2}}{7 d}-\frac {15 d^{5/2} \sqrt {\pi } \cos \left (2 a-\frac {2 b c}{d}\right ) S\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {\pi }}\right )}{128 b^{7/2}}-\frac {15 d^{5/2} \sqrt {\pi } C\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {\pi }}\right ) \sin \left (2 a-\frac {2 b c}{d}\right )}{128 b^{7/2}}-\frac {(c+d x)^{5/2} \cos (a+b x) \sin (a+b x)}{2 b}+\frac {5 d (c+d x)^{3/2} \sin ^2(a+b x)}{8 b^2}+\frac {15 d^2 \sqrt {c+d x} \sin (2 a+2 b x)}{64 b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.30, antiderivative size = 231, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 9, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {3392, 32,
3393, 3377, 3387, 3386, 3432, 3385, 3433} \begin {gather*} -\frac {15 \sqrt {\pi } d^{5/2} \sin \left (2 a-\frac {2 b c}{d}\right ) \text {FresnelC}\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {\pi } \sqrt {d}}\right )}{128 b^{7/2}}-\frac {15 \sqrt {\pi } d^{5/2} \cos \left (2 a-\frac {2 b c}{d}\right ) S\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {\pi }}\right )}{128 b^{7/2}}+\frac {15 d^2 \sqrt {c+d x} \sin (2 a+2 b x)}{64 b^3}+\frac {5 d (c+d x)^{3/2} \sin ^2(a+b x)}{8 b^2}-\frac {(c+d x)^{5/2} \sin (a+b x) \cos (a+b x)}{2 b}-\frac {5 d (c+d x)^{3/2}}{16 b^2}+\frac {(c+d x)^{7/2}}{7 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 32
Rule 3377
Rule 3385
Rule 3386
Rule 3387
Rule 3392
Rule 3393
Rule 3432
Rule 3433
Rubi steps
\begin {align*} \int (c+d x)^{5/2} \sin ^2(a+b x) \, dx &=-\frac {(c+d x)^{5/2} \cos (a+b x) \sin (a+b x)}{2 b}+\frac {5 d (c+d x)^{3/2} \sin ^2(a+b x)}{8 b^2}+\frac {1}{2} \int (c+d x)^{5/2} \, dx-\frac {\left (15 d^2\right ) \int \sqrt {c+d x} \sin ^2(a+b x) \, dx}{16 b^2}\\ &=\frac {(c+d x)^{7/2}}{7 d}-\frac {(c+d x)^{5/2} \cos (a+b x) \sin (a+b x)}{2 b}+\frac {5 d (c+d x)^{3/2} \sin ^2(a+b x)}{8 b^2}-\frac {\left (15 d^2\right ) \int \left (\frac {1}{2} \sqrt {c+d x}-\frac {1}{2} \sqrt {c+d x} \cos (2 a+2 b x)\right ) \, dx}{16 b^2}\\ &=-\frac {5 d (c+d x)^{3/2}}{16 b^2}+\frac {(c+d x)^{7/2}}{7 d}-\frac {(c+d x)^{5/2} \cos (a+b x) \sin (a+b x)}{2 b}+\frac {5 d (c+d x)^{3/2} \sin ^2(a+b x)}{8 b^2}+\frac {\left (15 d^2\right ) \int \sqrt {c+d x} \cos (2 a+2 b x) \, dx}{32 b^2}\\ &=-\frac {5 d (c+d x)^{3/2}}{16 b^2}+\frac {(c+d x)^{7/2}}{7 d}-\frac {(c+d x)^{5/2} \cos (a+b x) \sin (a+b x)}{2 b}+\frac {5 d (c+d x)^{3/2} \sin ^2(a+b x)}{8 b^2}+\frac {15 d^2 \sqrt {c+d x} \sin (2 a+2 b x)}{64 b^3}-\frac {\left (15 d^3\right ) \int \frac {\sin (2 a+2 b x)}{\sqrt {c+d x}} \, dx}{128 b^3}\\ &=-\frac {5 d (c+d x)^{3/2}}{16 b^2}+\frac {(c+d x)^{7/2}}{7 d}-\frac {(c+d x)^{5/2} \cos (a+b x) \sin (a+b x)}{2 b}+\frac {5 d (c+d x)^{3/2} \sin ^2(a+b x)}{8 b^2}+\frac {15 d^2 \sqrt {c+d x} \sin (2 a+2 b x)}{64 b^3}-\frac {\left (15 d^3 \cos \left (2 a-\frac {2 b c}{d}\right )\right ) \int \frac {\sin \left (\frac {2 b c}{d}+2 b x\right )}{\sqrt {c+d x}} \, dx}{128 b^3}-\frac {\left (15 d^3 \sin \left (2 a-\frac {2 b c}{d}\right )\right ) \int \frac {\cos \left (\frac {2 b c}{d}+2 b x\right )}{\sqrt {c+d x}} \, dx}{128 b^3}\\ &=-\frac {5 d (c+d x)^{3/2}}{16 b^2}+\frac {(c+d x)^{7/2}}{7 d}-\frac {(c+d x)^{5/2} \cos (a+b x) \sin (a+b x)}{2 b}+\frac {5 d (c+d x)^{3/2} \sin ^2(a+b x)}{8 b^2}+\frac {15 d^2 \sqrt {c+d x} \sin (2 a+2 b x)}{64 b^3}-\frac {\left (15 d^2 \cos \left (2 a-\frac {2 b c}{d}\right )\right ) \text {Subst}\left (\int \sin \left (\frac {2 b x^2}{d}\right ) \, dx,x,\sqrt {c+d x}\right )}{64 b^3}-\frac {\left (15 d^2 \sin \left (2 a-\frac {2 b c}{d}\right )\right ) \text {Subst}\left (\int \cos \left (\frac {2 b x^2}{d}\right ) \, dx,x,\sqrt {c+d x}\right )}{64 b^3}\\ &=-\frac {5 d (c+d x)^{3/2}}{16 b^2}+\frac {(c+d x)^{7/2}}{7 d}-\frac {15 d^{5/2} \sqrt {\pi } \cos \left (2 a-\frac {2 b c}{d}\right ) S\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {\pi }}\right )}{128 b^{7/2}}-\frac {15 d^{5/2} \sqrt {\pi } C\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {\pi }}\right ) \sin \left (2 a-\frac {2 b c}{d}\right )}{128 b^{7/2}}-\frac {(c+d x)^{5/2} \cos (a+b x) \sin (a+b x)}{2 b}+\frac {5 d (c+d x)^{3/2} \sin ^2(a+b x)}{8 b^2}+\frac {15 d^2 \sqrt {c+d x} \sin (2 a+2 b x)}{64 b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.41, size = 194, normalized size = 0.84 \begin {gather*} \frac {\sqrt {\frac {b}{d}} \left (-105 d^3 \sqrt {\pi } \cos \left (2 a-\frac {2 b c}{d}\right ) S\left (\frac {2 \sqrt {\frac {b}{d}} \sqrt {c+d x}}{\sqrt {\pi }}\right )-105 d^3 \sqrt {\pi } C\left (\frac {2 \sqrt {\frac {b}{d}} \sqrt {c+d x}}{\sqrt {\pi }}\right ) \sin \left (2 a-\frac {2 b c}{d}\right )+2 \sqrt {\frac {b}{d}} \sqrt {c+d x} \left (64 b^3 (c+d x)^3-140 b d^2 (c+d x) \cos (2 (a+b x))-7 d \left (-15 d^2+16 b^2 (c+d x)^2\right ) \sin (2 (a+b x))\right )\right )}{896 b^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 242, normalized size = 1.05
method | result | size |
derivativedivides | \(\frac {\frac {\left (d x +c \right )^{\frac {7}{2}}}{7}-\frac {d \left (d x +c \right )^{\frac {5}{2}} \sin \left (\frac {2 b \left (d x +c \right )}{d}+\frac {2 d a -2 c b}{d}\right )}{4 b}+\frac {5 d \left (-\frac {d \left (d x +c \right )^{\frac {3}{2}} \cos \left (\frac {2 b \left (d x +c \right )}{d}+\frac {2 d a -2 c b}{d}\right )}{4 b}+\frac {3 d \left (\frac {d \sqrt {d x +c}\, \sin \left (\frac {2 b \left (d x +c \right )}{d}+\frac {2 d a -2 c b}{d}\right )}{4 b}-\frac {d \sqrt {\pi }\, \left (\cos \left (\frac {2 d a -2 c b}{d}\right ) \mathrm {S}\left (\frac {2 b \sqrt {d x +c}}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )+\sin \left (\frac {2 d a -2 c b}{d}\right ) \FresnelC \left (\frac {2 b \sqrt {d x +c}}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )\right )}{8 b \sqrt {\frac {b}{d}}}\right )}{4 b}\right )}{4 b}}{d}\) | \(242\) |
default | \(\frac {\frac {\left (d x +c \right )^{\frac {7}{2}}}{7}-\frac {d \left (d x +c \right )^{\frac {5}{2}} \sin \left (\frac {2 b \left (d x +c \right )}{d}+\frac {2 d a -2 c b}{d}\right )}{4 b}+\frac {5 d \left (-\frac {d \left (d x +c \right )^{\frac {3}{2}} \cos \left (\frac {2 b \left (d x +c \right )}{d}+\frac {2 d a -2 c b}{d}\right )}{4 b}+\frac {3 d \left (\frac {d \sqrt {d x +c}\, \sin \left (\frac {2 b \left (d x +c \right )}{d}+\frac {2 d a -2 c b}{d}\right )}{4 b}-\frac {d \sqrt {\pi }\, \left (\cos \left (\frac {2 d a -2 c b}{d}\right ) \mathrm {S}\left (\frac {2 b \sqrt {d x +c}}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )+\sin \left (\frac {2 d a -2 c b}{d}\right ) \FresnelC \left (\frac {2 b \sqrt {d x +c}}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )\right )}{8 b \sqrt {\frac {b}{d}}}\right )}{4 b}\right )}{4 b}}{d}\) | \(242\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains complex when optimal does not.
time = 0.55, size = 295, normalized size = 1.28 \begin {gather*} \frac {\sqrt {2} {\left (\frac {512 \, \sqrt {2} {\left (d x + c\right )}^{\frac {7}{2}} b^{4}}{d} - 1120 \, \sqrt {2} {\left (d x + c\right )}^{\frac {3}{2}} b^{2} d \cos \left (\frac {2 \, {\left ({\left (d x + c\right )} b - b c + a d\right )}}{d}\right ) + 105 \, {\left (-\left (i + 1\right ) \cdot 4^{\frac {1}{4}} \sqrt {\pi } d^{3} \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \cos \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right ) + \left (i - 1\right ) \cdot 4^{\frac {1}{4}} \sqrt {\pi } d^{3} \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \sin \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right )\right )} \operatorname {erf}\left (\sqrt {d x + c} \sqrt {\frac {2 i \, b}{d}}\right ) + 105 \, {\left (\left (i - 1\right ) \cdot 4^{\frac {1}{4}} \sqrt {\pi } d^{3} \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \cos \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right ) - \left (i + 1\right ) \cdot 4^{\frac {1}{4}} \sqrt {\pi } d^{3} \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \sin \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right )\right )} \operatorname {erf}\left (\sqrt {d x + c} \sqrt {-\frac {2 i \, b}{d}}\right ) - 56 \, {\left (16 \, \sqrt {2} {\left (d x + c\right )}^{\frac {5}{2}} b^{3} - 15 \, \sqrt {2} \sqrt {d x + c} b d^{2}\right )} \sin \left (\frac {2 \, {\left ({\left (d x + c\right )} b - b c + a d\right )}}{d}\right )\right )}}{7168 \, b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 258, normalized size = 1.12 \begin {gather*} -\frac {105 \, \pi d^{4} \sqrt {\frac {b}{\pi d}} \cos \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right ) \operatorname {S}\left (2 \, \sqrt {d x + c} \sqrt {\frac {b}{\pi d}}\right ) + 105 \, \pi d^{4} \sqrt {\frac {b}{\pi d}} \operatorname {C}\left (2 \, \sqrt {d x + c} \sqrt {\frac {b}{\pi d}}\right ) \sin \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right ) - 4 \, {\left (32 \, b^{4} d^{3} x^{3} + 96 \, b^{4} c d^{2} x^{2} + 32 \, b^{4} c^{3} + 70 \, b^{2} c d^{2} - 140 \, {\left (b^{2} d^{3} x + b^{2} c d^{2}\right )} \cos \left (b x + a\right )^{2} - 7 \, {\left (16 \, b^{3} d^{3} x^{2} + 32 \, b^{3} c d^{2} x + 16 \, b^{3} c^{2} d - 15 \, b d^{3}\right )} \cos \left (b x + a\right ) \sin \left (b x + a\right ) + 2 \, {\left (48 \, b^{4} c^{2} d + 35 \, b^{2} d^{3}\right )} x\right )} \sqrt {d x + c}}{896 \, b^{4} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (c + d x\right )^{\frac {5}{2}} \sin ^{2}{\left (a + b x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 3.87, size = 1324, normalized size = 5.73 \begin {gather*} \frac {2240 \, {\left (\frac {\sqrt {\pi } d \operatorname {erf}\left (-\frac {\sqrt {b d} \sqrt {d x + c} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (-\frac {2 \, {\left (i \, b c - i \, a d\right )}}{d}\right )}}{\sqrt {b d} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}} + \frac {\sqrt {\pi } d \operatorname {erf}\left (-\frac {\sqrt {b d} \sqrt {d x + c} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (-\frac {2 \, {\left (-i \, b c + i \, a d\right )}}{d}\right )}}{\sqrt {b d} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}} + 4 \, \sqrt {d x + c}\right )} c^{3} + 28 \, c d^{2} {\left (\frac {64 \, {\left (3 \, {\left (d x + c\right )}^{\frac {5}{2}} - 10 \, {\left (d x + c\right )}^{\frac {3}{2}} c + 15 \, \sqrt {d x + c} c^{2}\right )}}{d^{2}} + \frac {15 \, {\left (\frac {\sqrt {\pi } {\left (16 \, b^{2} c^{2} - 8 i \, b c d - 3 \, d^{2}\right )} d \operatorname {erf}\left (-\frac {\sqrt {b d} \sqrt {d x + c} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (-\frac {2 \, {\left (i \, b c - i \, a d\right )}}{d}\right )}}{\sqrt {b d} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )} b^{2}} - \frac {2 \, {\left (-4 i \, {\left (d x + c\right )}^{\frac {3}{2}} b d + 8 i \, \sqrt {d x + c} b c d + 3 \, \sqrt {d x + c} d^{2}\right )} e^{\left (-\frac {2 \, {\left (-i \, {\left (d x + c\right )} b + i \, b c - i \, a d\right )}}{d}\right )}}{b^{2}}\right )}}{d^{2}} + \frac {15 \, {\left (\frac {\sqrt {\pi } {\left (16 \, b^{2} c^{2} + 8 i \, b c d - 3 \, d^{2}\right )} d \operatorname {erf}\left (-\frac {\sqrt {b d} \sqrt {d x + c} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (-\frac {2 \, {\left (-i \, b c + i \, a d\right )}}{d}\right )}}{\sqrt {b d} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )} b^{2}} - \frac {2 \, {\left (4 i \, {\left (d x + c\right )}^{\frac {3}{2}} b d - 8 i \, \sqrt {d x + c} b c d + 3 \, \sqrt {d x + c} d^{2}\right )} e^{\left (-\frac {2 \, {\left (i \, {\left (d x + c\right )} b - i \, b c + i \, a d\right )}}{d}\right )}}{b^{2}}\right )}}{d^{2}}\right )} + d^{3} {\left (\frac {256 \, {\left (5 \, {\left (d x + c\right )}^{\frac {7}{2}} - 21 \, {\left (d x + c\right )}^{\frac {5}{2}} c + 35 \, {\left (d x + c\right )}^{\frac {3}{2}} c^{2} - 35 \, \sqrt {d x + c} c^{3}\right )}}{d^{3}} - \frac {35 \, {\left (\frac {\sqrt {\pi } {\left (64 \, b^{3} c^{3} - 48 i \, b^{2} c^{2} d - 36 \, b c d^{2} + 15 i \, d^{3}\right )} d \operatorname {erf}\left (-\frac {\sqrt {b d} \sqrt {d x + c} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (-\frac {2 \, {\left (i \, b c - i \, a d\right )}}{d}\right )}}{\sqrt {b d} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )} b^{3}} + \frac {2 \, {\left (-16 i \, {\left (d x + c\right )}^{\frac {5}{2}} b^{2} d + 48 i \, {\left (d x + c\right )}^{\frac {3}{2}} b^{2} c d - 48 i \, \sqrt {d x + c} b^{2} c^{2} d + 20 \, {\left (d x + c\right )}^{\frac {3}{2}} b d^{2} - 36 \, \sqrt {d x + c} b c d^{2} + 15 i \, \sqrt {d x + c} d^{3}\right )} e^{\left (-\frac {2 \, {\left (-i \, {\left (d x + c\right )} b + i \, b c - i \, a d\right )}}{d}\right )}}{b^{3}}\right )}}{d^{3}} - \frac {35 \, {\left (\frac {\sqrt {\pi } {\left (64 \, b^{3} c^{3} + 48 i \, b^{2} c^{2} d - 36 \, b c d^{2} - 15 i \, d^{3}\right )} d \operatorname {erf}\left (-\frac {\sqrt {b d} \sqrt {d x + c} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (-\frac {2 \, {\left (-i \, b c + i \, a d\right )}}{d}\right )}}{\sqrt {b d} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )} b^{3}} + \frac {2 \, {\left (16 i \, {\left (d x + c\right )}^{\frac {5}{2}} b^{2} d - 48 i \, {\left (d x + c\right )}^{\frac {3}{2}} b^{2} c d + 48 i \, \sqrt {d x + c} b^{2} c^{2} d + 20 \, {\left (d x + c\right )}^{\frac {3}{2}} b d^{2} - 36 \, \sqrt {d x + c} b c d^{2} - 15 i \, \sqrt {d x + c} d^{3}\right )} e^{\left (-\frac {2 \, {\left (i \, {\left (d x + c\right )} b - i \, b c + i \, a d\right )}}{d}\right )}}{b^{3}}\right )}}{d^{3}}\right )} - 560 \, {\left (\frac {3 \, \sqrt {\pi } {\left (4 \, b c - i \, d\right )} d \operatorname {erf}\left (-\frac {\sqrt {b d} \sqrt {d x + c} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (-\frac {2 \, {\left (i \, b c - i \, a d\right )}}{d}\right )}}{\sqrt {b d} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )} b} + \frac {3 \, \sqrt {\pi } {\left (4 \, b c + i \, d\right )} d \operatorname {erf}\left (-\frac {\sqrt {b d} \sqrt {d x + c} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (-\frac {2 \, {\left (-i \, b c + i \, a d\right )}}{d}\right )}}{\sqrt {b d} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )} b} - 16 \, {\left (d x + c\right )}^{\frac {3}{2}} + 48 \, \sqrt {d x + c} c + \frac {6 i \, \sqrt {d x + c} d e^{\left (-\frac {2 \, {\left (i \, {\left (d x + c\right )} b - i \, b c + i \, a d\right )}}{d}\right )}}{b} - \frac {6 i \, \sqrt {d x + c} d e^{\left (-\frac {2 \, {\left (-i \, {\left (d x + c\right )} b + i \, b c - i \, a d\right )}}{d}\right )}}{b}\right )} c^{2}}{8960 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\sin \left (a+b\,x\right )}^2\,{\left (c+d\,x\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________